package com.skplanet.oneplusonewindow.moimserver.controller.api;

import java.security.Principal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.skplanet.oneplusonewindow.moimserver.domain.Moim_Member;
import com.skplanet.oneplusonewindow.moimserver.domain.Moim_Moim;
import com.skplanet.oneplusonewindow.moimserver.domain.Moim_User;

@Controller
public class MoimController {
	
	
	/**
	 * moim test page
	 * @param model
	 * @return
	 */
	@RequestMapping(value="/moim", method = RequestMethod.GET) 
	public String moimTest(Model model) {
		return "main";
	}
	
	@RequestMapping(value="/moim/login", method = RequestMethod.GET) 
	public String login(Model model) {
		return "login";
	}

	@RequestMapping(value="/moim/logged", method = RequestMethod.GET) 
	public String logged(Model model) {
		return "logged";
	}
	
	@RequestMapping(value="/moim/signup", method = RequestMethod.GET) 
	public String signup(Model model) {
		return "signup";
	}
	
	@RequestMapping(value="/moim/create1", method = RequestMethod.GET) 
	public String create1(Model model) {
		return "create_new_moim_1";
	}
	@RequestMapping(value="/moim/create2", method = RequestMethod.GET) 
	public String create2(Model model) {
		return "create_new_moim_2";
	}
	@RequestMapping(value="/moim/board", method = RequestMethod.GET) 
	public String board(Model model) {
		return "board";
	}
	@RequestMapping(value="/moim/board/write", method = RequestMethod.GET) 
	public String write(Model model) {
		return "write";
	}
	@RequestMapping(value="/moim/moimList", method = RequestMethod.GET) 
	public String moims(Model model) {
		return "moim_list";
	}
	@RequestMapping(value="/moim/moim", method = RequestMethod.GET) 
	public String moim(Model model) {
		return "moim";
	}
	@RequestMapping(value="/moim/plaza", method = RequestMethod.GET) 
	public String plaza(Model model) {
		return "square";
	}
	@RequestMapping(value="/moim/plaza/write", method = RequestMethod.GET) 
	public String plazaWrite(Model model) {
		return "plaza_write";
	}
	@RequestMapping(value="/moim/plaza/boardWrite", method = RequestMethod.GET) 
	public String plazaBWrite(Model model) {
		return "plaza_board_write";
	}
	@RequestMapping(value="/moim/update/board", method = RequestMethod.GET) 
	public String ub(Model model) {
		return "update_board";
	}
	@RequestMapping(value="/moim/update/plaza", method = RequestMethod.GET) 
	public String plaupzaBWrite(Model model) {
		return "update_plaza";
	}
	@RequestMapping(value="/moim/update/pb", method = RequestMethod.GET) 
	public String pbpb(Model model) {
		return "update_pb";
	}
}
